<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<!DOCTYPE html>
<html lang="zh-CN">
<head> 
   <meta charset="UTF-8">
   <%@ include file="/WEB-INF/views/include/head.jsp"%>
   <link rel="stylesheet" href="${ctxStatic}/css/common_erp.css">
   <link rel="stylesheet" href="${ctxStatic}/css/layerSm.css">
   <script src="${ctxStatic}/js/jquery-1.9.1.min.js"></script>
   <script src="${ctxStatic}/js/layer.js"></script>
   <script src="${ctxStatic}/js/style.js"></script>
   <script src="${ctxStatic}/jquery-barcode/jquery-barcode.js" type="text/javascript"></script>
   <c:set value="<%=ResourcesUtil.getConfig(\"inventory_status_not_all\")%>" var="inventoryStatusNotAll" />
   <c:set value="<%=ResourcesUtil.getConfig(\"inventory_status_all\")%>" var="inventoryStatusAll" />
   <script type="text/javascript">
      $(document).ready(function(){
         
      });
      
      
	</script>
</head>
<body>
<div class="layerHeader clearfix">
	<p class="headerTitle"><spring:message code="unitCost_detail_title"/></p>
    <div class="headerButton clearfix">
        <!-- 取消 -->
        <button onclick="closeWin()"><spring:message code="btn_cancle"/></button>
    </div>
</div>
<div style="padding: 10px;">
<div class="tableArea">
    <div class="tableScrollSm" style="overflow:auto;width:877px;height:520px;">
        <table cellpadding="0" class="tableHead">
            <thead>
            <tr>
            	<!-- 序号No. -->
	            <th><p class="width-50px"><spring:message code="common_no"/></p></th>
                <!-- 物料图片 -->
                <th><p class="width-70px"><spring:message code="unitCost_detail_image"/></p></th>
                <!-- 物料号 -->
                <th><p class="width-150px"><spring:message code="unitCost_detail_materialCode"/></p></th>
                <!-- 幅宽 -->
                <th><p class="width-80px"><spring:message code="unitCost_detail_materialSpec"/></p></th>
                <!-- 单耗 -->
                <th><p class="width-90px"><spring:message code="unitCost_detail_unitCost"/></p></th>
                <!-- 损耗 -->
                <th><p class="width-80px"><spring:message code="unitCost_detail_loss"/></p></th>
                <!-- 换残 -->
                <th><p class="width-80px"><spring:message code="unitCost_detail_changeImperfect"/></p></th>
                <!-- 单耗合计 -->
                <th><p class="width-100px"><spring:message code="unitCost_detail_unitCostSum"/></p></th>
                <!-- 备注 -->
                <th><p class="width-150px"><spring:message code="unitCost_detail_remarks"/></p></th>
            </tr>
            </thead>
        </table>
        <table cellpadding="0" class="tableBody" id="tableRequestDetails">
            <tbody>
            <c:forEach items="${unitCostDetailsList}" var="unitCostDetails" varStatus="status">
            <tr>
            <td><p class="width-50px">${status.count }</p></td>
                <td><p class="width-70px">
                  <c:if test="${not empty unitCostDetails.materialFile}">
                        <img src="${unitCostDetails.materialFile}" class="wltp">
                  </c:if>
                  <c:if test="${empty unitCostDetails.materialFile}">
                        <img src="${ctxStatic}/images/pic-none.jpg" class="wltp">
                  </c:if>
                  </p>
                </td>
                <td><p class="width-150px">${unitCostDetails.materialCode}</p></td>
                <td><p class="width-80px">${unitCostDetails.materialSpec}</p></td>
                <td><p class="width-90px"><fmt:formatNumber value="${unitCostDetails.materialUnitCost}" pattern="#,##0.0000#"/></p></td>
                <td><p class="width-80px"><fmt:formatNumber value="${unitCostDetails.materialLoss}" pattern="#,##0.0000#"/></p></td>
                <td><p class="width-80px"><fmt:formatNumber value="${unitCostDetails.changeImperfect}" pattern="#,##0.0000#"/></p></td>
                <td><p class="width-100px"><fmt:formatNumber value="${unitCostDetails.unitCostSum}" pattern="#,##0.0000#"/></p></td>
                <td><p class="width-150px">${unitCostDetails.remarks}</p></td>
            </tr>
            </c:forEach>
            </tbody>
        </table>
    </div>
</div></div>
</body>
</html>